package com.personal.service;

import com.personal.domain.Enterprise;
import com.personal.util.partDisplay.EnterprisePart;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;


@Transactional
public interface EnterpriseService {


    List<Enterprise> selectAll();

    List<EnterprisePart> selectPartAll();

    List<EnterprisePart> selectPartByKey(String customerName,String customerCode);


    boolean add(Enterprise enterprise);


    Enterprise getUpdateData(int id);
    boolean update(Enterprise enterprise);

    boolean delete(List<Integer> ids);

}
